package com.oro.domain;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * Entity implementation class for Entity: MacroCategoria
 * 
 */
@Entity
public class MacroCategoria implements Serializable {

	public static final MacroCategoria CERTIFICATION = new MacroCategoria(
			"Cerfitication");
	public static final MacroCategoria ELICOS = new MacroCategoria("Elicos");
	public static final MacroCategoria ENGLISH = new MacroCategoria("English");
	public static final MacroCategoria PROFESSIONAL = new MacroCategoria(
			"Professional");
	private static final long serialVersionUID = 1L;
	public static final MacroCategoria TAFE = new MacroCategoria("TAFE");

	public static final MacroCategoria UNIVERSITY = new MacroCategoria(
			"University");
	public static final MacroCategoria VOCATIONAL = new MacroCategoria(
			"Vocational");

	@Id
	@GeneratedValue
	private Long id;

	private String name;

	public MacroCategoria() {
		super();
	}

	public MacroCategoria(String name) {
		this();
		this.name = name;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o)
			return true;
		if (o != null)
			if (o instanceof MacroCategoria)
				if (getId() != null)
					return getId().equals(((MacroCategoria) o).getId());
				else
					return getName().equals(((MacroCategoria) o).getName());
			else
				return false;
		else
			return false;
	}

	public Long getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

}
